//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    //头部菜单
    topList: [
      "店铺首页", "全部商品", "新品上架"
    ],
    topIndex: 0,


    indicatorDots: true,
    autoplay: true,
    interval: 5000,
    duration: 1000

  },
  switchTopTab: function (e) {
    var topIndex = parseInt(e.currentTarget.dataset.index);
    console.log("当前点击--->", this.data.topList[topIndex])
    this.setData({
      topIndex: topIndex
    })
  },
  bindinfo: function () {
    wx.navigateTo({
      url: '../info/info'
    })

  },
  onLoad: function () {
  }

})


